package com.data;

import java.util.ArrayList;
import java.util.List;

public class DbImporter {
	
	public DbImporter () {
		
	}
	
	public static void loadAvailableDesignComponents (List <Short> list) {
		list = new ArrayList <Short> ();
		
	}
	
	public static void loadAvailableDesignComponentsTypes (List <Byte> list) {
		// TODO: Implement this method.
		list.add(IdManager.THEM_PREFIX);
		list.add(IdManager.SCRE_PREFIX);
		list.add(IdManager.MENU_PREFIX);
		list.add(IdManager.BANN_PREFIX);
	}
	
	public static String getComponentTypeName(byte prefix) {
		switch (prefix) {
		case IdManager.TEMP_PREFIX:
			return "Template";
			
		case IdManager.THEM_PREFIX:
			return "Theme";
		
		case IdManager.SCRE_PREFIX:
			return "Screen";
			
		case IdManager.MENU_PREFIX:
			return "Menu";
			
		case IdManager.ENTR_PREFIX:
			return "Entry";
			
		case IdManager.BANN_PREFIX:
			return "Banner";
			
		case IdManager.BUTT_PREFIX:
			return "Button";
			
		case IdManager.IMAG_PREFIX:
			return "Image";
			
		case IdManager.TEXT_PREFIX:
			return "Text";
			
		default:
			return "";
		}
		//TODO: change this switch for a DB query.
	}
	
}
